const mongoose = require('mongoose')

async function connect() {
    await mongoose.connect('mongodb://localhost:27017/fire-eye', {
        user : '',
        pass : '',
        poolSize : 10
    })
}


async  function close() {
    await mongoose.connection.close()
}


module.exports = {
    mongoose,
    connect,
    close
}